package com.vorli;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.RadioGroup;
import android.widget.RadioButton;
import android.widget.TextView;
//import android.view.View;



public class eggtimer extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        TextView tv = (TextView) findViewById(R.id.TextViewTime);
        eggcalc Ei = new eggcalc(tv,4,100,3,62);
    	RadioGroup sizegroup = (RadioGroup) findViewById(R.id.RadioGroup01);
        sizegroup.setOnCheckedChangeListener(new RadioButtonListener(Ei,1));
        RadioGroup tempgroup = (RadioGroup) findViewById(R.id.RadioGroup02);
        tempgroup.setOnCheckedChangeListener(new RadioButtonListener(Ei,2));
        RadioGroup targetgroup = (RadioGroup) findViewById(R.id.RadioGroup03);
        targetgroup.setOnCheckedChangeListener(new RadioButtonListener(Ei,3));
    	RadioButton sze = (RadioButton) findViewById(R.id.RadioButton02);
        sze.setChecked(true);
        RadioButton tmp = (RadioButton) findViewById(R.id.RadioButton04);
        tmp.setChecked(true);
        RadioButton target = (RadioButton) findViewById(R.id.RadioButton06);
        target.setChecked(true);
        Button start = (Button) findViewById(R.id.ButtonStart);
       
 		start.setOnClickListener(new ButtonOnClickListener());
    
    }
    
}